 package com.lj.mcore.entity;

  import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;


 @Entity
 @Table(name="shopping_coupon_info")
 public class CouponInfo extends IdEntity
 {
   private String coupon_sn;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private User user;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private Coupon coupon;
 
   @Column(columnDefinition="int default 0")
   private int status;
 
   public int getStatus()
   {
     return this.status;
   }
 
   public void setStatus(int status) {
     this.status = status;
   }
 
   public String getCoupon_sn() {
     return this.coupon_sn;
   }
 
   public void setCoupon_sn(String coupon_sn) {
     this.coupon_sn = coupon_sn;
   }
 
   public User getUser() {
     return this.user;
   }
 
   public void setUser(User user) {
     this.user = user;
   }
 
   public Coupon getCoupon() {
     return this.coupon;
   }
 
   public void setCoupon(Coupon coupon) {
     this.coupon = coupon;
   }
 }



 
 